<?php 
	$yourCart = new Zend_Session_Namespace('cart');
	$carInfo = $yourCart->getIterator();
	$totalCart = count($carInfo['cart']);
	
	$linkCart = $this->cmsUrl(array(
								'module' => 'default',
								'controller' => 'index',
								'action' => 'cart'
									));
?>
	<div id="home_cart" title="Xem giỏ hàng của bạn">
    	<div class="cart_info">
	    	<a href="<?php echo $linkCart?>"><?php echo $totalCart?></a>
            CART
       	</div>
 	</div>
 	

<script>
	$(document).ready(function(){
		$("#home_cart").tipTip({
			maxWidth: "auto", 
			defaultPosition: "left",
			delay: 200,
			edgeOffset: 10
			});
	})
</script>	  